<?php 
/*
Template Name: ChandaNews
*/
get_header();
$this_is_page=true;
?>
		 <div class="AboutContent">
	 	   <div class="AboutSubmenu">
		   	<ul>
				
				<li class="Home"><a href="<?php bloginfo('url'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/homebutton.png" /></a></li>
			
                             <?php   
                            if($post->post_parent) {
                              $children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0");
                              $titlenamer = get_the_title($post->post_parent);
                              }
                              else {
                              $children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0");
                              $titlenamer = get_the_title($post->ID);
                              }
                              ?>
                                <li class="TitleButton"><?php echo $titlenamer; ?></li>
                              <?php
                              if ($children) { ?>
                              <?php echo $children; ?>
                             <?php } ?>
				<li class="Image"><img src="<?php bloginfo('template_url'); ?>/images/wordsimage.png" /></li>
			</ul>
			
			
		   </div>
		   
                <div class="AboutScan">
		     <div class="AboutWordstitle">
			 	<a href="<?php bloginfo('url'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/companynews.jpg" /></a></div>
			  <div class="AboutNewsWordscontent">
                              
                                 <div class="NewsTable">
				  <div class="NewsContent">
						<div class="NewsContentTable">
        					<?php
								$the_query = new WP_Query('category_name=chandanews&posts_per_page=10');
                                while ($the_query->have_posts()) : $the_query->the_post(); ?>
                                                        	  
								<ul>
									<li class="Newstitled">标题：</li>
									<li class="Newscontentd"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
								</ul>
							  	<ul>
									<li class="Newstitledd">摘要：</li>
                                    <li class="Newscontentdd"><a href="<?php the_permalink(); ?>"><?php the_excerpt(); ?></a></li>		
								</ul>
                                   
                             <?php endwhile; ?>
    <div class="navigation"><p><?php posts_nav_link(); ?></p></div>
                                 </div><!-- newsContent Table -->
                                               
                                  </div><!-- news content -->
			 </div><!-- news table -->
                          </div> <!--AboutNewsWordscontent -->
                          
			  <div class="AboutWordsbuttom">
			 </div>
		   </div>
		 </div>

<?php get_footer(); ?>